package cn.cms.chuangjia.front;

import cn.cms.chuangjia.config.EmailConfig;
import cn.cms.chuangjia.config.LiuRedisConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController
public class TestController {
    @Autowired
    private LiuRedisConfig config;

    @Autowired
    private EmailConfig emailConfig;

    @GetMapping("redisconfig")
    public  LiuRedisConfig testRedis(){
        return config;
    }

    @GetMapping("showmail")
    public EmailConfig showMail(){
        return emailConfig;
    }
}
